package com.jumi.microservice.yzhpay.pay.order;

import com.jumi.microservice.yzhpay.constant.ConfigPath;
import com.jumi.microservice.yzhpay.constant.OrderPrefixEnum;
import com.jumi.microservice.yzhpay.dto.request.BankCardOrderRequest;
import com.jumi.microservice.yzhpay.pay.BasePay;
import com.jumi.microservice.yzhpay.util.OrderUtil;
import com.jumi.microservice.yzhpay.util.Property;


/**
 * 银行卡实时下单
 */
public class BankCardOrder extends BasePay<BankCardOrderRequest> {

    @Override
    public BankCardOrderRequest assembleParam() {
        return BankCardOrderRequest.builder()
                .order_id(OrderUtil.getOrderId(OrderPrefixEnum.BANK_CARD_ORDER.getValue()))
                .dealer_id(Property.getProperties(ConfigPath.YZH_DEALERID))
                .broker_id(Property.getProperties(ConfigPath.YZH_BROKERID))
                .real_name("董世南")
                .card_no("6216616004001866437")
                .phone_no("18753032828")
                .id_card("372922199602014500")
                .pay("0.01")
                .pay_remark("测试数据")
                .notify_url(Property.getProperties(ConfigPath.YZH_BACKNOTIFY_URL))
                .build();
    }

}
